<template>
  <div>
    <!-- 动态属性 -->
    <!-- 语法v-bind:属性名="变量" -->
    <a v-bind:href="url">去百度</a>
    <br>
     <a :href="url">去百度2</a>
    <img v-bind:src="imgUrl" alt="">图片
  </div>
</template>

<script>
export default {
  name: 'CodeApp',

  data() {
    return {
      url:"http://baidu.www.com",
       imgUrl:'https://bkimg.cdn.bcebos.com/pic/cc11728b4710b912c8fc8b87a4b7eb039245d688843a?x-bce-process=image/resize,m_lfit,w_536,limit_1/format,f_jpg'
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>